﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ScriptEditor.Commands
{
    class Command_Naming : Command
    {
        public string instruction
        {
            get
            {
                return Value1;
            }
            set
            {
                Value1 = value;
            }
        }
        public string nameKey
        {
            get
            {
                return Value2;
            }
            set
            {
                Value2 = value;
            }
        }
        public string instructionJp
        {
            get
            {
                return Value3;
            }
            set
            {
                Value3 = value;
            }
        }
        public string instructionTc
        {
            get
            {
                return Value4;
            }
            set
            {
                Value4 = value;
            }
        }
        public Command_Naming()
        {
            CommandType = COMMANDTYPE.Naming;
            instruction = "★请输入你的名字";
            nameKey = "PlayerName";
            instructionJp = "";
            instructionTc = "";
            Wait = true;
        }
        public Command_Naming(string Instruction,string NameKey,string InstructionJp="",string InstructionTc="")
        {
            CommandType = COMMANDTYPE.Naming;
            instruction = Instruction;
            nameKey = NameKey;
            instructionJp = InstructionJp;
            instructionTc = InstructionTc;
            Wait = true;
        }
        public override string ToString()
        {
            return CommandType.ToString() + ":\n" + "取名:" + nameKey;
        }
    }
}
